#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	int a[10] = { 1, 4, 2, 3, 6, 5, 7, 9, 0, 8 };
	for (int i = 0; i < 9; i++)
	{
		for (int j = i + 1; j < 10; j++)
		{
			if (a[i] > a[j]) {
				int t = a[i]; 
				a[i] = a[j];
				a[j] = t;
			}
		}
	}
	for (int i = 0; i < 10; i++) {
		printf("%d ", a[i]);
	}
	return 0;
}